configure_file("config.hh.in" "config.hh" @ONLY)
configure_file("corelib/gapr/version.hh.in" "corelib/gapr/version.hh" @ONLY)

configure_file("dir.in" "dir" @ONLY)
add_subdirectory(corelib)
if(ENABLE_GUI)
	add_subdirectory(guilib)
endif()

#add_executable(cli-prog "main.cc")
#set_target_properties(cli-prog PROPERTIES
#RUNTIME_OUTPUT_NAME "gapr")
#install(TARGETS cli-prog
#RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
#COMPONENT core
#)
#target_link_libraries(cli-prog PRIVATE core-lib)

if(NOT ENABLE_GUI)
	return()
endif()

add_subdirectory(gather)
add_subdirectory(export)
add_subdirectory(trace)

if(ENABLE_GUI)
	add_subdirectory(start)
	add_subdirectory(fix)
	add_subdirectory(proofread)
	add_subdirectory(show)
endif()

